
<!DOCTYPE html>
 
<html lang="en">
 
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Correct</title>
<style>
#header {
	background-color:black;
	color:white;
	text-align:center;
    padding:3px;}
#body {
	background-color:yellow;
	color:black;
	text-align:center;
	height:660px;
	width:1200px;
}
#foot {
	background-color:black;
	color:white;
	text-align:center;
    padding:3px;
	clear:both;
}
#navs {
	background-color:#eeeeee;
	height:650px;
	width:200px;
	float:right;
	text-align:center;
	padding:5px;
}
#navf {
	background-color:#eeeeee;
	height:650px;
	width:200px;
	float:left;
	text-align:center;
	padding:5px;
}
</style>
</head>
 
<body>
<div id="header">
    <h1>修改文章</h1>
</div>
<div id="navf">
    <b style="color:red"><br><br><br>熊<br>猫<br>博<br>客<br></b><b>正<br>在<br>为<br>您<br>服<br>务<br>！</b>
</div>
<div id="navs">
    <b style="color:red"><br><br><br>熊<br>猫<br>博<br>客<br></b><b>正<br>在<br>为<br>您<br>服<br>务<br>！</b>
</div>
<?php
header('Content-type:text/html;charset=UTF-8');
include_once("../class/mysqlclass.php");
session_start();
$id=$_GET['id'];
$_SESSION['id']=$id;
$pdo = new my;
$res=$pdo->SelectId($id);
foreach($res as $var){
?>
<div id="body">
	<form action="xiugaiadd.php" method="post" >
		文章标题：<input type="text" name="title" value='<?php echo $var['title'];?>'/>
<br>
 
文章作者：<input type="text" name="author" value='<?php echo $var['author'];?>' readonly/>
<br>
<p>文章简介：</p>
<textarea id='description' class="description" name="description" cols='70' rows='8' ><?php echo $var['description'];?></textarea>
<br>
<p>文章内容：</p>
<textarea id='content' class="content" name="content" cols='120' rows='18' ><?php echo $var['content'];?></textarea>
<br>
<input id='finish' type="submit" name="finish" value='完成'></textarea>
 </form></div>

<?php
}
?>
<div id="foot">
<a href="./show.php?id=1">返回文章展示</a></div>
</body>
</html>